home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / termsorc.lha / Extras / Source / gtlayout-source.lha / LTP_Memory.c < prev    next >
C/C++ Source or Header  |  1995-09-24  |  555b  |  32 lines

  1. /*  GadTools layout toolkit
  2. **
  3. **  Copyright © 1993-1995 by Olaf `Olsen' Barthel
  4. **  Freely distributable.
  5. */
  6.  
  7. #include "gtlayout_global.h"
  8.  
  9. APTR __regargs
  10. LTP_Alloc(LayoutHandle *handle,ULONG amount)
  11. {
  12.     APTR result;
  13.  
  14.     result = AsmAllocPooled(handle -> Pool,amount,SysBase);
  15.  
  16.     if(!result)
  17.         handle -> Failed = TRUE;
  18.  
  19.     return(result);
  20. }
  21.  
  22.  
  23. /*****************************************************************************/
  24.  
  25.  
  26. VOID __regargs
  27. LTP_Free(LayoutHandle *handle,APTR mem,ULONG memsize)
  28. {
  29.     if(mem)
  30.         AsmFreePooled(handle -> Pool,mem,memsize,SysBase);
  31. }
  32.